<!--
 * @Author: your name
 * @Date: 2022-01-21 14:25:15
 * @LastEditTime: 2022-01-25 17:28:07
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \eribbit-client-pc\src\views\Layout.vue
-->
<!--  -->
<template>
  <div>
    <!-- 顶部通栏 -->
 <AppNavbar></AppNavbar>
    <!-- 头部组件 -->
    <AppHeader></AppHeader>

    <!-- 内容容器 -->
    <div class="main">
      <!-- 二级路由 -->
      <router-view></router-view>
    </div>
    <!-- 底部组件 -->
    <AppFooter></AppFooter>
  </div>
</template>

<script>
import AppNavbar from '@/components/app-navbar.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import { useStore } from 'vuex'
export default {
  components: {
    AppNavbar,
    AppFooter,
    AppHeader
  },
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }

}
</script>
<style scoped>
/* @import url(); 引入css类 */
</style>
